home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-03-17 | 2.1 KB | 80 lines | [TEXT/MPS ] |
- ;=============================================================================
- ; MacApp 68000 Assembly Macros
- ;
- ; KNOWN LIMITATIONS
- ;
- ; Copyright © 1984-1992 Apple Computer, Inc. All rights reserved.
- ;
- ; when who what
- ; -------- ---- --------------------------------------------------------------
- ; 88.07.28 srf add header and includes for Macros
- ; 88.10.03 srf change all MacApp command line definitions from "&" defs
- ; ----------------------------------------------------------------------------
-
-
-
- ;------------------------------------------------------------------------------
- If qNeedsMC68020 Then
- Machine MC68020
- EndIf
- If qNeedsMC68030 Then
- Machine MC68030
- EndIf
- If qNeedsFPU Then
- MC68881
- EndIf
- ;------------------------------------------------------------------------------
- ; set Debug for ProgStrucMacs.a to match qNames
- Debug: SET qNames
- if not qNames then
- LinkAll: SET qNames
- EndIf
- ;------------------------------------------------------------------------------
-
- Macro
- Head
- If qNames Then
- Link A6,#0 ; These two instructions form a slow no-op
- Move.L (SP)+,A6
- EndIf
- EndM
-
- ;------------------------------------------------------------------------------
-
- Macro
- Procnam &theName
- If qNames Then
-
- String Asis
-
- LCLC &DbgTemp
- LCLC &DbgName ; name to generate for MacsBug
-
- &DbgTemp: SETC &theName ; Generate new type symbols
- IF &Len(&theName) < 32 THEN ; If module name < 32 chars
- IF &Len(&theName) // 2 = 0 THEN ; Add space if even so that...
- &DbgTemp: SETC &Concat(&theName,' ') ; string length plus length byte...
- ENDIF ; will align to word boundary
- &DbgName: SETC &Concat(&Chr($80 + &Len(&theName)), &DbgTemp)
- ELSE ; Length is greater than 32 characters
- IF &Len(&theName) // 2 = 1 THEN ; Add space if length is odd
- &DbgTemp: SETC &Concat(&theName,' ')
- ENDIF
- &DbgName: SETC &Concat(&Chr($80), &Chr(&Len(&theName)), &DbgTemp)
- ENDIF
-
- DC.B '&DbgName'
- EndIf
- EndM
-
- ;------------------------------------------------------------------------------
-
- Macro
- Tail &theName
- If qNames Then
- Unlk A6
- Rts
- PROCNAM &theName
- EndIf
- EndM
-